package com.metaverse.backend.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

@Data
public class PageQuery {
    @ApiModelProperty(value ="页数")
    private int                 page  = 0;

    @ApiModelProperty(value ="每页数量")
    private int                 size  = 20;

    @ApiModelProperty(value ="排序字段，排序规则。 例如 'createdAt,desc' 是以时间排序,倒序")
    private String              sort;

    private String              search;

    @ApiModelProperty(value ="查询条件")
    private Map<String,Object> query = new HashMap<>();
}
